package com.dsj.gxrd.modules.activity.domain.vo;

import com.dsj.gxrd.modules.book.domain.dto.RdFileDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author songpin566
 * @date 2023/10/07
 **/
@Data
public class RdNewsVo {

    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rdNewsId;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("活动时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime activeTime;
    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;
    @ApiModelProperty("顺序")
    private Integer sort;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvalTime;
    @ApiModelProperty("审核状态 0待审核 1审核通过 2审核驳回")
    private Integer status;
    @ApiModelProperty("参与人员名称")
    private String participantNames;
    @ApiModelProperty("参与人员")
    private String participantIds;
    @ApiModelProperty("分类id")
    private Long rdBookCatId;
    @ApiModelProperty("分类名")
    private String bookCatName;
    @ApiModelProperty("当前审核人")
    private String currentApprovalRole;
    @ApiModelProperty("remark")
    private String approvalContent;
    @ApiModelProperty("创建者")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createBy;

    @ApiModelProperty("创建者名称")
    private String createByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateBy;

    @ApiModelProperty("审核人")
    private Long approvalUserId;

    @ApiModelProperty("审核人")
    private String approvalByName;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private List<RdFileDto> fileList;

    @ApiModelProperty("赣县人大常委会")
    private String isGxrdcwh;

    private String isPublish;

    private String subtitle;


}
